package com.atguigu.feign;

import com.atguigu.entity.Article;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "cloud-forum-article")
public interface ArticleFeignClient {

    @GetMapping("/articles/users/list")
    List<Article> queryArticleList(@RequestParam Integer userId);
}
